# -*- coding: utf-8 -*-
from django.db import models
import time


# Create your models here.
class Info:
    uid = -1
    subCid = -1
    cid = -1
    alias = ''
    default = False
    time = 0

    def __init__(self,uid=-1,subCid=-1,cid=-1,alias=None,default=False,**kwargs):
        self.uid = uid
        self.subCid = subCid
        self.cid = cid
        self.alias = alias
        self.default = default
        self.time = int(time.time())*1000

    def toDict(self):
        return {"uid":self.uid,"subCid":self.subCid,"cid":self.cid,"alias":self.alias,"default":self.default,"time":self.time}

if __name__ == '__main__':
    print Info().time
    